package nl.mad.drib.feeder;

import org.springframework.beans.factory.InitializingBean;

/**
 * Database feeder that executes {@link #afterPropertiesSet()}. Whenever
 * components extend from this class, the feeder logic will automatically
 * be executed after bean initialization.
 * 
 * @see InitializingBean
 * 
 * @author Jeroen van Schagen
 * @since 04-05-2011
 */
public abstract class SpringDatabaseFeeder implements DatabaseFeeder, InitializingBean {

    /**
     * {@inheritDoc}
     */
    @Override
    public void afterPropertiesSet() throws Exception {
        this.perform();
    }

}
